<?php
/* @var $this GuestbookController */
/* @var $model Guestbook */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'guestbook-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<!--div class="row">
		<?php /*echo $form->labelEx($model,'inquiry_timestamp'); ?>
		<?php echo $form->textField($model,'inquiry_timestamp'); ?>
		<?php echo $form->error($model,'inquiry_timestamp'); */?>
	</div-->

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_number'); ?>
		<?php echo $form->textField($model,'contact_number',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'contact_number'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'preferred_date'); ?>
		<?php echo $form->error($model,'preferred_date'); ?>
		<?php $this->widget( 'zii.widgets.jui.CJuiDatePicker', array(
			
			'model'=>$model,
			'attribute'=>'preferred_date',
			'options'=>array('dateFormat'=>'yy-mm-dd',
							 'showAnim'=>'fold',
			),
			//'mode' =>'date',
			));
		 ?>
		 
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'preferred_time'); ?>
		<?php echo $form->error($model,'preferred_time'); ?>
		<?php $this->widget( 'ext.EJuiTimePicker.EJuiTimePicker', array(
			'model' => $model, // Your model
			'attribute' => 'preferred_time', // Attribute for input
			'mode' =>'time',
			)); 
		?>
	</div>

	<div class="row">
		<?php //echo $form->labelEx($model,'update'); ?>
		<?php echo $form->checkBox($model,'update',array('size'=>1,'maxlength'=>1)); ?> <b>Receive updates and announcements?</b>
		<?php echo $form->error($model,'update'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Submit' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->